const rl = require("readline").createInterface({ input: process.stdin });
var iter = rl[Symbol.asyncIterator]();
const readline = async () => (await iter.next()).value;

void (async function () {
    // Write your code here
    while ((line = await readline())) {
        const arr = line.split("");
        const idx = 0;
        const d = 0;
        const sum = 0;
        for (let i = 0; i, arr.length; i++) {
            if (arr[i] < 0) {
                idx += 1;
            } else {
                sum += arr[i];
                d += 1;
            }
        }
        console.log(idx, sum / d);
    }
})();
